/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.maxato.domain;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
 * @author Danny
 */
public class Event {

    @XmlAttribute
    int id;
    @XmlAnyElement
    @XmlJavaTypeAdapter(WeekAdapter.class)
    List<Week> weeks;

    public Event(int id, List<Week> weeks) {
        this.id = id;
        this.weeks = weeks;
    }

    public Event() {
    }

    public int getIdEvent() {
        return id;
    }

    public void setIdEvent(int id) {
        this.id = id;
    }

    public List<Week> getWeeksEvent() {
        return weeks;
    }

    public void setWeeksEvent(List<Week> weeks) {
        this.weeks = weeks;
    }
}
